package com.qixin.modules.log.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 接口使用日志
 * @Author: wmf
 * @Date:   2022-02-23
 * @Version: V1.0
 */
@Data
@TableName("sys_interface_log")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="sys_interface_log对象", description="接口使用日志")
public class SysInterfaceLog implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**接口名称*/
	@Excel(name = "接口名称", width = 15)
    @ApiModelProperty(value = "接口名称")
    private String name;
	/**0,失败,1,成功,2,已处理*/
	@Excel(name = "0,失败,1,成功,2,已处理", width = 15)
    @ApiModelProperty(value = "0,失败,1,成功,2,已处理")
    private String state;
	/**接口推送内容*/
	@Excel(name = "接口推送内容", width = 15)
    @ApiModelProperty(value = "接口推送内容")
    private String content;
	/**推送时间*/
	@JsonFormat(timezone = "GMT+8",pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "推送时间")
    private Date createTime;
	/**接口返回字符串*/
	@Excel(name = "接口返回字符串", width = 15)
    @ApiModelProperty(value = "接口返回字符串")
    private String result;
	/**0,无需处理,1,未处理,2,已处理*/
	@Excel(name = "0,无需处理,1,未处理,2,已处理", width = 15)
    @ApiModelProperty(value = "0,无需处理,1,未处理,2,已处理")
    private String disposeState;
	/**业务单据号*/
	@Excel(name = "业务单据号", width = 15)
    @ApiModelProperty(value = "业务单据号")
    private String businessNo;
    /**业务单据号*/
    @Excel(name = "业务单据号", width = 15)
    @ApiModelProperty(value = "业务单据号")
    private String businessId;
    /**处理时间*/
    @JsonFormat(timezone = "GMT+8",pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "处理时间")
    private Date updateTime;
	/**处理人*/
	@Excel(name = "修改用户", width = 15)
    @ApiModelProperty(value = "处理人")
    private String updateBy;
}
